# coding:utf-8

# join()

x = 'abc'
y = 'def'
z = ['d', 'e', 'f']
print(x.join(y))
print(x.join(z))
# dabceabcf
# dabceabcf

print()

def demo(param1, param2):
    param1 += 2
    param2.append(4)


if __name__ == "__main__":
    param1 = 1
    param2 = [1, 2, 3]
    b = [1, 2, 3]
    demo(param1, param2)
    demo(param1, b)
    print(param1)
    # TODO
    print(param2)
    print(b)
    # 1
    # [1, 2, 3, 4]
    # [1, 2, 3, 4]

# error: 4,6,9
# 8

print()

# TODO 不合法的布尔表达式
# x in range(6)
# 3 = a
# e > 5 and 4 == f
# (x - 6) > 5
print()

# TODO
print('A' < 'b')  # True
x = 43
ch = 'A'
y = 1
# TODO
print(x >= y and ch < ' b ' and y)  # False
print(x >= y)  # True
print(ch < 'b')  # True
print(y)  # 1

print()
# for i in range(1, 11):
#     print(i)
for i in tuple([1, 10]):
    print(i)

print()
kai = set()
guan = set()
for i in range(1, 1001):
    if i % 2 == 0:
        guan.add(i)
    else:
        kai.add(i)

k = set()
g = set()
for i in list(kai):
    if i % 5 == 0:
        g.add(i)
    else:
        k.add(i)

for i in list(guan):
    if i % 5 == 0:
        k.add(i)
    else:
        g.add(i)
print(len(k), len(kai))
print(len(g), len(guan))
